7 init_dbglogout
2 testing
20000
15 #echo xxx > /dev/pts/0
23 ln -s `which scripttest` scripttesttest
24 #(pwd ; ls -l)> /dev/pts/0
26 dbgout
"================================\n"
27 dbgout
"clean test dir.\n"
28 dbgout
"================================\n"
32 # 在testing目录的测试例子中,第3个测试会遇到failed
33 # 使用-u参数将测试输出信息更新到测试log文件,再次运行测试时应该正常运行测试项。
34 dbgout
"================================\n"
35 dbgout
"test 5 items when error occours.\n"
36 dbgout
"================================\n"
37 .
/scripttesttest
-n 5 -q
39 dbgout
"================================\n"
40 dbgout
"update output to item.\n"
41 dbgout
"================================\n"
42 .
/scripttesttest
-n 5 -q -u
44 dbgout
"================================\n"
45 dbgout
"check if the item is ok.\n"
46 dbgout
"================================\n"
47 .
/scripttesttest
-n 5 -q
49 dbgout
"================================\n"
50 dbgout
"clean test dir.\n"
51 dbgout
"================================\n"
54 dbgout
"================================\n"